<!DOCTYPE html>
<html>
    <head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>客服管理- 反馈回复详情</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<link rel="shortcut icon" href="favicon.ico">
	<link href="__PUBLIC__/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
	<link href="__PUBLIC__/css/font-awesome.css?v=4.4.0" rel="stylesheet">
	<link href="__PUBLIC__/css/animate.css" rel="stylesheet">
	<link href="__PUBLIC__/css/style.css?v=4.1.0" rel="stylesheet">
	<style type="text/css">
	    .img {
		max-width:256px; max-height:256px;
	    }
	    .img2{ max-width: 64px; max-height: 64px; }
	    .imgbox ul {
		width:100%; padding:0;
	    }
	    .imgbox ul li {
		display:inline-block; margin-right:15px;
	    }
	    table tr td.unfound{ text-align: center; }
	</style>
    </head>
    <body class="gray-bg">
	<div class="wrapper wrapper-content  animated fadeInRight">
	    <div class="row">
		<div class="col-sm-12">
		    <div class="ibox float-e-margins">
			<div class="ibox-title">
			    <h5>客服管理-
				<small>反馈回复详情</small>
			    </h5>
			    <div class="ibox-tools">
			    </div>
			</div>
			<div class="ibox-content">
			    <form method="post" class="form-horizontal" onsubmit="return false">
				<div class="form-group">
				    <label class="col-sm-2 control-label">回复时间</label>
				    <div class="col-sm-10 control-label" style="text-align: left;">
					<{$data.ctime}>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">编号</label>
				    <div class="col-sm-10 control-label" style="text-align: left;">
					<{$id}>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">回复内容</label>
				    <div class="col-sm-10 control-label" style="text-align: left;">
					<{$data.content}>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">添加管理员</label>
				    <div class="col-sm-10 control-label" style="text-align: left;">
					<{$data.admin_name_text}>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">反馈时间</label>
				    <div class="col-sm-10 control-label" style="text-align: left;">
					<{$data.fb_ctime}>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">反馈编号</label>
				    <div class="col-sm-10 control-label" style="text-align: left;">
					<{$data.fb_id}>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">反馈内容</label>
				    <div class="col-sm-10 control-label" style="text-align: left;">
					<a href="__CONTROLLER__/feedbackdetail/id/<{$data.fb_id}>"><{$data.fb_content}></a>
				    </div>
				</div>
				<div class="form-group">
				    <label class="col-sm-2 control-label">反馈图片</label>
				    <div class="col-sm-10 control-label" style="text-align: left;">
					<div class="imgbox">
					    <if condition="$data.imgs eq null || $data.imgs eq ''">
						<else/>
						<ul>
						    <volist name="data.imgs" id="img">
							<li>
							    <a href="__CONTROLLER__/feedbackdetail/id/<{$data.fb_id}>"><img alt="未找到图片" class="img" src="<{$img}>"></a>
							</li>
						    </volist>
						</ul>
					    </if>
					</div>
				    </div>
				</div>
				<div class="hr-line-dashed"></div>
				<div class="form-group">
				    <div class="col-sm-4 col-sm-offset-2">
					<button class="btn btn-danger" type="button" onclick="del('<{$id}>')">删除</button>
				    </div>
				</div>
			    </form>
			</div>
		    </div>
		</div>
	    </div>
	</div>
	<!-- 全局js -->
	<script src="__PUBLIC__/js/jquery.min.js?v=2.1.4"></script>
	<script src="__PUBLIC__/js/bootstrap.min.js?v=3.3.6"></script>
	<script src="__PUBLIC__/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="__PUBLIC__/js/plugins/layer/layer.min.js"></script>
	<!-- 自定义js -->
	<script src="__PUBLIC__/js/content.js?v=1.0.0"></script>
	<script>
					    var deletereplysubmit = "<{:U('deletereplysubmit','','')}>";
					    var feedbackreplylist = "<{:U('feedbackreplylist','','')}>";
					    function del(id) {
						layer.confirm('确定删除该回复吗？', function (index) {
						    layer.close(index);
						    $.post(deletereplysubmit, {id: id},
							    function (data) {
								if (data.ret == '1001') {
								    layer.msg(data.code, {icon: 6, time: 1000});
								    setTimeout(function () {
									window.location.href = feedbackreplylist;
								    }, 1000);
								} else {
								    layer.msg(data.code, {icon: 5, time: 1500});
								}
							    }, 'json');
						});
					    }
	</script>
    </body>
</html>
